package com.ding.custommanagersys.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ding.custommanagersys.entity.Custom;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ding.custommanagersys.vo.CustomVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ding
 * @since 2023-04-18
 */
@Mapper
public interface CustomMapper extends BaseMapper<Custom> {

    List<CustomVo> getAllCustom(Page<CustomVo> page,
                                @Param("customId") String customId,
                                @Param("name") String name);
    List<Custom> listCustom(@Param("ids") List<String> ids);

    String maxUid();


    Integer updateCustom(@Param("custom") Custom custom);

    Integer deleteCustomByIds(@Param("customIds") List<String> customIds);


}
